package org.example.builder;

import lombok.Builder;
import lombok.Data;

/**
 * @author admin
 */

@Data
@Builder
public class SmartPhone {
    // 必需参数
    private final String model;
    private final String processor;

    // 可选参数
    private final String screenType;
    private final int ramGB;
    private final int storageGB;
    private final boolean hasNFC;
    private final boolean has5G;
    private final String osVersion;

    // 自定义构建方法（可选）
    public static  SmartPhoneBuilder builder(String model, String processor) {
        return new SmartPhoneBuilder()
                .model(model)
                .processor(processor);
    }
}